package net.xdclass.video.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.xdclass.video.entity.Genre;
import net.xdclass.video.mapper.GenreMapper;
import net.xdclass.video.service.GenreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GenreServiceImpl extends ServiceImpl<GenreMapper, Genre>  implements GenreService {
   @Autowired
   private GenreMapper genreMapper;
    @Override
    public List<Genre> yearList() {
        List<Genre> genreList= genreMapper.yearList();
        return genreList;
    }

    @Override
    public List<Genre> storyFinAll() {
        List<Genre> genreList= genreMapper.storyFinAll();
        return genreList;
    }

    @Override
    public List<Genre> districtFinAll() {
        List<Genre> genreList= genreMapper.districtFinAll();
        return genreList;
    }

    @Override
    public List<Genre> regionFinAll() {
        List<Genre> genreList= genreMapper.regionFinAll();
        return genreList;
    }

    @Override
    public List<Genre> plotFinAll() {
        List<Genre> genreList= genreMapper. plotFinAll();
        return genreList;
    }
}
